﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CompanyAuditorsDelegate.aspx.cs" Inherits="Auditors_CompanyAuditorsDelegate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="searchcondition">
        <table class="searchtb">
            <tr>
                <td>
                    角色
                </td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True">
                    </asp:DropDownList>
                </td>
                <td>
                    报单月份
                </td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>（格式：2012-01）
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="commongv"
        OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand">
        <Columns>
            <asp:BoundField DataField="OrderID" HeaderText="订单编号" SortExpression="OrderID" />
            <asp:BoundField DataField="下单时间" HeaderText="下单时间" SortExpression="下单时间" DataFormatString="{0:yyyy-MM-dd}" />
            <asp:BoundField DataField="公司英文名" HeaderText="公司英文名" SortExpression="公司英文名" />
            <asp:BoundField DataField="公司中文名" HeaderText="公司中文名" SortExpression="公司中文名" />
            <asp:BoundField DataField="注册地" HeaderText="注册地" SortExpression="注册地" />
            <asp:BoundField DataField="业务员" HeaderText="业务员" SortExpression="业务员" />
            <asp:BoundField DataField="业务类型" HeaderText="业务类型" SortExpression="业务类型" />
            <asp:BoundField DataField="Status" HeaderText="当前环节" SortExpression="Status" />
            <%--  <asp:HyperLinkField HeaderText="操作" Text="处理" DataNavigateUrlFields="CompanyID" DataNavigateUrlFormatString="CompanyYear.aspx?OrderID={0}" />--%>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <a href='CompanyDirectors.aspx?CompanyID=<%# Eval("CompanyID")%>&OrderID=<%# Eval("OrderID")%>'>
                        处理</a>
                    <%--  
                    <%# (string.IsNullOrEmpty(Eval("EmpolyeeID").ToString())) ? "<a href='DelegateTask.aspx?OrderID="+Eval("OrderID")+"'>指派</a>" : Eval("EmpolyeeID") %> 
                    --%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <%# (string.IsNullOrEmpty(Eval("EmpolyeeID").ToString())) ? "<a href='DelegateTask.aspx?OrderID="+Eval("OrderID")+"'>指派</a>" : Eval("EmpolyeeID") %>
                    <asp:LinkButton ID="Signature" runat="server" CausesValidation="False" CommandName="Signature" OnClientClick="return confirm('请确认进入客户签字环节？');"
                        Visible="false" CommandArgument='<%#Eval("OrderID") %>' Text="客户签字"></asp:LinkButton>
                    <asp:LinkButton ID="QuoteRevenue" runat="server" CausesValidation="False" CommandName="QuoteRevenue" OnClientClick="return confirm('请确认进入报税务局环节？');"
                        Visible="false" CommandArgument='<%#Eval("OrderID") %>' Text="报税务局"></asp:LinkButton>
                    <asp:LinkButton ID="Finish" runat="server" CausesValidation="False" CommandName="Finish" OnClientClick="return confirm('请确认进入完成环节？');"
                        Visible="false" CommandArgument='<%#Eval("OrderID") %>' Text="完成"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
